package me.firstapp.module.shop;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import me.firstapp.module.base.CommonEntity;

@Entity
@Table(name = "PRODUCT_CATEGORY")
public class Category extends CommonEntity {

	private static final long serialVersionUID = 8004556168614017906L;

	// 种类名称
	@Column(name = "NAME", length = 30, nullable = false, unique = true)
	private String name;

	// 种类描述
	@Column(name = "DESCRIPTION", length = 200, nullable = true)
	private String description;

	// 排序
	@Column(name = "SORT", nullable = false, columnDefinition = "TINYINT")
	private Integer sort;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

}
